package com.jason.www.controller.vo;

import com.jason.www.pojo.GiftCard;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

public class GiftCardVo implements Serializable {
    private int pageSize;
    private int page=1;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        if(page > 0){
            this.page = page;
        }
    }

    public int getCurrent() {
        return page;
    }

    public GiftCard getGiftcard() {
        GiftCard target = new GiftCard();
        BeanUtils.copyProperties(this,target);
        return target;
    }
}
